﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<Sisocana.Core.Models.AffectedAreaMarker>>" %>

    <script type="text/javascript">
        $(document).ready(function () {
            createAffectedAreasMap('affected_areas_map');
        });
	</script>
    <h2>Affected locations</h2>
    
    <div id='affected_areas_map' style="display:block; width:100%; height:300px"></div>
    <%= Html.Hidden("affected_areas_map_marker_amount", Model.Count()) %>
    <div id="aaMarkers">
        <%= Html.DisplayForModel() %>
    </div>